import React from 'react';
import logo from './logo.svg';
import './App.css';
import User from './pages/user/Index'
// 根节点包裹 AppProvider 
/*
import { AppProvider } from '../src/context/AppContext'
function App() {
  return (
    <AppProvider>
      <div className="App">
        <h2>Context</h2>
        <User></User>
        <hr/>
        <h2>redux</h2>
      </div>
    </AppProvider>
  );
}
*/
import { Provider } from 'react-redux'
import Store from './store'
import TodooList from './pages/todo/Index'

function App() {
  return (
    <Provider store={Store}>
      <div className="App">
        <h2>Context</h2>
        {/* <User></User> */}
        <hr/>
        <h2>redux</h2>
        <TodooList></TodooList>
      </div>
    </Provider>
  );
}

export default App;
